#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/7/5
# @Author  : LiJun
# @Email   : lijun@tianyancha.com
# @Version : 1.0.0

from common.appium_base_method import BasePage
from appium_0704.page.address_book_page import AddressBook
import allure

class MainPage(BasePage):
    # App首页

    @allure.step("点击「通讯录」")
    def goto_Address(self):
        self.find_click(*self.by_maps(self.element["AddressBook"]), outtime=12)

        return AddressBook(self.driver, element=self.element)
